<!--<div class="blank3"></div>-->
<div ng-controller="loginController" ng-init="referer = '<{$referer}>'" class="container wrap-form">
    <div class="row">
        <div class="col-xs-5 col-thin right">
            <a href="#" class="logo"></a>
        </div>
        <div class="col-xs-6 col-header">
            <h4>我要登录</h4>
            <p>没有账号？请<a href="<{:U('Register/index')}>">&nbsp;注册</a></p>
        </div>
    </div>

    <form name="loginForm" class="form-horizontal" role="form" novalidate>
        <div class="form-group">
            <label for="inputPhone" class="col-xs-3 control-label sm-label label-phone">手机号码</label>
            <div class="col-xs-9"
                 ng-class="{'has-error has-feedback': loginForm.phone.$invalid && loginForm.phone.$dirty}">
                <input type="tel" name="phone" class="form-control" id="inputPhone" placeholder="手机号为登陆账号"
                       required ng-model="form.phone">
                <!--<span ng-show="loginForm.phone.$valid" class="glyphicon glyphicon-ok form-control-feedback" aria-hidden="true"></span>-->
                <span ng-show="loginForm.phone.$invalid && loginForm.phone.$dirty" class="glyphicon glyphicon-warning-sign form-control-feedback" aria-hidden="true"></span>
                <div class="warning"
                     ng-show="loginForm.phone.$invalid && loginForm.phone.$dirty">
                    <small
                           ng-show="loginForm.phone.$error.required">
                        请输入手机号
                    </small>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label for="inputPassword" class="col-xs-3 control-label sm-label label-psw">密码</label>
            <div class="col-xs-9"
                 ng-class="{'has-error has-feedback': loginForm.psw.$invalid && loginForm.psw.$dirty}">
                <input type="password" name="psw" class="form-control" id="inputPassword" placeholder="请输入密码"
                       required ng-model="form.psw">
                <!--<span ng-show="loginForm.psw.$valid" class="glyphicon glyphicon-ok form-control-feedback" aria-hidden="true"></span>-->
                <span ng-show="loginForm.psw.$invalid && loginForm.psw.$dirty" class="glyphicon glyphicon-warning-sign form-control-feedback" aria-hidden="true"></span>
                <div class="warning"
                     ng-show="loginForm.psw.$invalid && loginForm.psw.$dirty">
                    <small
                           ng-show="loginForm.psw.$error.required">
                        请输入密码
                    </small>
                </div>
                <div class="error" ng-show="loginForm.$error.validate">
                    <small
                           ng-show="loginForm.$error.validate">
                        账号或密码错误
                    </small>
                </div>
            </div>
        </div>
        <input type="hidden" name="account"/>
        <div class="form-group">
            <div class="col-xs-offset-3 col-xs-9">
                <div class="checkbox">
                    <label>
                        <input type="checkbox" name="autoLogin" ng-init="form.autoLogin = true" ng-model="form.autoLogin">记住密码</a>
                    </label>
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-xs-offset-3 col-xs-9">
                <a href="<{:U('Login/iforgot')}>">忘记密码？</a>
            </div>
        </div>
        <div class="form-group">
            <div class="col-xs-12 col-thin center">
                <button type="submit" ng-click="submit()" class="btn btn-default btn-main">登录</button>
            </div>
        </div>
    </form>
</div>